package cn.jd.product.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.jd.basic.domain.BasicDomain;
import cn.jd.org.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



/**
 * <p>
 * 
 * </p>
 *
 * @author jd
 * @since 2022-10-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product extends BasicDomain {



    /**
     * 服务名称
     */
    private String name;
    /**
     * 存放fastdfs地址，多个资源使用，分割
     */
    private String resources;
    /**
     * 售价
     */
    private BigDecimal saleprice;
    /**
     * 下架时间
     */
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss" , timezone ="GMT+8" )
    private Date offsaletime;
    /**
     * 上架时间
     */
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss" , timezone ="GMT+8" )
    private Date onsaletime;
    /**
     * 状态：0下架 1上架
     */
    private Long state;
    /**
     * 成本价
     */
    private String costprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone ="GMT+8" )
    private Date createtime=new Date();
    /**
     * 销售数量
     */
    private Double salecount;
    /**
     * 详情
     */
    private ProductDetail  productDetail;
    private Long shopid;
    // 商家
    private Shop shop;


}
